package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperSysconfBranch implements Serializable {
    private Integer id;

    /**
     * 省
     */
    private String district;

    /**
     * 地区、县
     */
    private String area;

    /**
     * 街道
     */
    private String street;

    /**
     * 小区
     */
    private String community;

    /**
     * 网点名称
     */
    private String branchName;

    /**
     * 住户数
     */
    private Integer households;

    /**
     * 员工ID1
     */
    private Integer workerId1;

    /**
     * 员工ID2
     */
    private Integer workerId2;

    /**
     * 员工ID3
     */
    private Integer workerId3;

    /**
     * 地址id
     */
    private Integer addrId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 省
     */
    public String getDistrict() {
        return district;
    }

    /**
     * 省
     */
    public void setDistrict(String district) {
        this.district = district;
    }

    /**
     * 地区、县
     */
    public String getArea() {
        return area;
    }

    /**
     * 地区、县
     */
    public void setArea(String area) {
        this.area = area;
    }

    /**
     * 街道
     */
    public String getStreet() {
        return street;
    }

    /**
     * 街道
     */
    public void setStreet(String street) {
        this.street = street;
    }

    /**
     * 小区
     */
    public String getCommunity() {
        return community;
    }

    /**
     * 小区
     */
    public void setCommunity(String community) {
        this.community = community;
    }

    /**
     * 网点名称
     */
    public String getBranchName() {
        return branchName;
    }

    /**
     * 网点名称
     */
    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    /**
     * 住户数
     */
    public Integer getHouseholds() {
        return households;
    }

    /**
     * 住户数
     */
    public void setHouseholds(Integer households) {
        this.households = households;
    }

    /**
     * 员工ID1
     */
    public Integer getWorkerId1() {
        return workerId1;
    }

    /**
     * 员工ID1
     */
    public void setWorkerId1(Integer workerId1) {
        this.workerId1 = workerId1;
    }

    /**
     * 员工ID2
     */
    public Integer getWorkerId2() {
        return workerId2;
    }

    /**
     * 员工ID2
     */
    public void setWorkerId2(Integer workerId2) {
        this.workerId2 = workerId2;
    }

    /**
     * 员工ID3
     */
    public Integer getWorkerId3() {
        return workerId3;
    }

    /**
     * 员工ID3
     */
    public void setWorkerId3(Integer workerId3) {
        this.workerId3 = workerId3;
    }

    /**
     * 地址id
     */
    public Integer getAddrId() {
        return addrId;
    }

    /**
     * 地址id
     */
    public void setAddrId(Integer addrId) {
        this.addrId = addrId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", district=").append(district);
        sb.append(", area=").append(area);
        sb.append(", street=").append(street);
        sb.append(", community=").append(community);
        sb.append(", branchName=").append(branchName);
        sb.append(", households=").append(households);
        sb.append(", workerId1=").append(workerId1);
        sb.append(", workerId2=").append(workerId2);
        sb.append(", workerId3=").append(workerId3);
        sb.append(", addrId=").append(addrId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperSysconfBranch other = (SuperSysconfBranch) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDistrict() == null ? other.getDistrict() == null : this.getDistrict().equals(other.getDistrict()))
            && (this.getArea() == null ? other.getArea() == null : this.getArea().equals(other.getArea()))
            && (this.getStreet() == null ? other.getStreet() == null : this.getStreet().equals(other.getStreet()))
            && (this.getCommunity() == null ? other.getCommunity() == null : this.getCommunity().equals(other.getCommunity()))
            && (this.getBranchName() == null ? other.getBranchName() == null : this.getBranchName().equals(other.getBranchName()))
            && (this.getHouseholds() == null ? other.getHouseholds() == null : this.getHouseholds().equals(other.getHouseholds()))
            && (this.getWorkerId1() == null ? other.getWorkerId1() == null : this.getWorkerId1().equals(other.getWorkerId1()))
            && (this.getWorkerId2() == null ? other.getWorkerId2() == null : this.getWorkerId2().equals(other.getWorkerId2()))
            && (this.getWorkerId3() == null ? other.getWorkerId3() == null : this.getWorkerId3().equals(other.getWorkerId3()))
            && (this.getAddrId() == null ? other.getAddrId() == null : this.getAddrId().equals(other.getAddrId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDistrict() == null) ? 0 : getDistrict().hashCode());
        result = prime * result + ((getArea() == null) ? 0 : getArea().hashCode());
        result = prime * result + ((getStreet() == null) ? 0 : getStreet().hashCode());
        result = prime * result + ((getCommunity() == null) ? 0 : getCommunity().hashCode());
        result = prime * result + ((getBranchName() == null) ? 0 : getBranchName().hashCode());
        result = prime * result + ((getHouseholds() == null) ? 0 : getHouseholds().hashCode());
        result = prime * result + ((getWorkerId1() == null) ? 0 : getWorkerId1().hashCode());
        result = prime * result + ((getWorkerId2() == null) ? 0 : getWorkerId2().hashCode());
        result = prime * result + ((getWorkerId3() == null) ? 0 : getWorkerId3().hashCode());
        result = prime * result + ((getAddrId() == null) ? 0 : getAddrId().hashCode());
        return result;
    }
}